package com.ctshk.rpc.system.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author Lenovo
 */
@Data
@ApiModel(value="MainDataRowDataReq对象", description="新增主数据行数据")
public class MainDataRowDataReq implements Serializable {

    private static final long serialVersionUID = 1L;


    @NotNull(message = "所属表id不能为空")
    @ApiModelProperty(value = "所属表id")
    private Long tableId;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "行id")
    private Long rowId;

    @ApiModelProperty(value = "状态（0： 启用 1：禁用）")
    private Integer status;

    @NotNull(message = "字段数据列表")
    @ApiModelProperty(value = "字段数据列表")
    private List<MainDataFieldDataReq> list;

}
